package com.snatch.snatchmgr.vo;

import java.sql.Timestamp;

/**
 * 登录状态
 * @author Administrator
 *
 */
public class NodeSnatch {
	
	private String nodeOnlyCode;
	private String error;
	private Long version;
	private long snatchCost;// 本次抓取花费的时间
	private String showTime;
	private Long updateTiem;

	/*节点维护时间如果该时间值过期则该节点将会被移除*/
	public void setUpdateTiem(Long updateTiem) {
		this.updateTiem = updateTiem;
		Timestamp times = new Timestamp(updateTiem);
		setShowTime(times.toString());
	}
	

	public String getNodeOnlyCode() {
		return nodeOnlyCode;
	}
	public void setNodeOnlyCode(String nodeOnlyCode) {
		this.nodeOnlyCode = nodeOnlyCode;
	}
	public Long getUpdateTiem() {
		return updateTiem;
	}
	
	public String getShowTime() {
		return showTime;
	}
	public void setShowTime(String showTime) {
		this.showTime = showTime;
	}


	public String getError() {
		return error;
	}


	public void setError(String error) {
		this.error = error;
	}


	public Long getVersion() {
		return version;
	}


	public void setVersion(Long version) {
		this.version = version;
	}


	public long getSnatchCost() {
		return snatchCost;
	}


	public void setSnatchCost(long snatchCost) {
		this.snatchCost = snatchCost;
	}
	
	
}	
